package net.neptech.model.workflow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author Saya
 * @Date 2025/8/22 11:40
 * @Description TODO
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "workflow_group")
@TableName("workflow_group")

public class WorkflowGroup {

    @TableField("group_id")
    @TableId
    @Id
    @GeneratedValue(strategy = GenerationType.UUID)
    private String id;

    /**
     * 分组名
     */
    @TableField("group_name")
    private String groupName;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;
    /**
     * 逻辑删除字段
     */
    @TableField("deleted")
    @Column(name = "deleted")
    private Boolean deleted;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @Column(name = "update_time")
    private Date updateTime;
}
